package com.xuanyuanxinyu.core.base;

import android.annotation.SuppressLint;
import android.content.Context;

/**
 * @author ken.luo
 */
public class ApplicationUtils {

   @SuppressLint("StaticFieldLeak")
   private static Context mContext;
    public static String cachePath;

    public static void initContext(Context context) {
        mContext = context;
        cachePath = context.getCacheDir().getAbsolutePath();
//        Log.i("111111111111111111111", "文件目录位置  = " + cachePath);
    }


    public static Context getApplicationContext() {
        if (mContext == null) {
            throw new RuntimeException("applicationContext not init");
        }
        return mContext;
    }





}
